Added more variables to Server for heartbeats and detecting leader death