Quick fix for input reading, which was broken, and totally untested