Added huge amounts of debug