Added the survey backend part