Updated CustomRequirement constructor