Added new parameter for notification frequency