Disgusting code.