Adding some code to debug the projection code