Adjusted locate.
Removed inefficiencies.
Fixed commas.