Shrihari:Added code to store coordinates