Added method for input