Resolved issue with determining location