Changed to use general locate function.