Finished Loop Checking and input by command line