Update library. Add implementation for CASP flags.