Updated to make into an executable to be run on the command line