Added caseless option and required flags.