Reduced complexity of user input check. Minor adjustments and condensing of other expressions.