Updated program to run from bin