Split input loop from render loop