Really terrible code