Added rules condition based on desired format.