Added debug messages and still none the wiser...