Survey Controller code debugging