Initial commit with a working and tested GM script.