Started moving towards a python based command line tool. This is a dark day for my bash skills.