GPII-547: Moved logic of success event of set to external function.