Change method of receiving input from user