Support state param for callback