Used active patterns to compose params