Polished up the gem to make it robust and actually useful.