Added logging for user input