Latest functional version of program