Changed heartbeat to heartbeatInSeconds