Added handling of wrong console input