Bah, need to make this a proper plugin.