Added *args and **kwargs to heartbeat handler