Replaced hand code with step code form the article as gelocation stuff did not work