Added advanced memory corruption debugging stuff