Fixed the creation logic for AtLeast, AtMost and Exactly Functions