modifications to gr-scan by Nicholas Tomlinson http://www.techmeology.co.uk/gr-scan/