Added a script to write location data