Solved
-Not setting properly the user input
-Handling the ready flag.