Make functions static as they must be called inside notify_rc