Removed some console logs. Fixed input handeling