Yeah. The whole thing is pretty ugly . I will definitely rewrite it someday.