Fixing typo and making heartbeat optional by passing an option