Input from file works fine now