Bug fixes.
Callout and heartbeat emulation.