Added some debug to sort through this shitfest