Added chomp to stdin to clean up things a little.