Added shitloads of debugging logging