Added debug to client to try and work out what's going wrong on the build server