Move the input loop in bin file. use CTRL+C to exit