Add a Read() function for input