Porting survey_main.psp