Implemented locate and readforward

Untested, but compiles