Re-added in the debugging lines for updatelayers testing that were lost in git weirdness...