Moved heartbeat starting function into spawn* functions