Added some debug stuff, still dont know why it doesnt work