So much terrible code written, but it's working