Fixed the numerical inputs not getting parsed

Great script! I had to change these to get it to work with command-line options though.