add max Occurences to custom heartbeat