Add support for deferred payload building when sending heartbeat. Useful if you have to retrieve data from database or other external systems to build the payload.