WTF THIS CODE

SUPER HACKY