Process required and optional parameters