Add first pass at script, TODO: clean up to make it a gem