Implementation of read and in.