Adding GPS service class originally provided by Lianne Wong