Replaced 6 boolean members of csp with one bitmap (csp->flags)