Began input loop