Implemented heartbeat endpoint