Merged input store and read_input