Fixed programs not returning functions.