Add customized responseFunc