Added heartbeat period into server