Wow, this is amazingly hacky.