Added method to return previous user inputs