I think this might work + debug stuff