Implements the 'locate' job.