Add payloadfactory and setting payload