Add opening and pattern book flag.