PROGRAM FLEXIBILITY ROUTINE