Better method of input