Added code for retrieving reference to a particular location.