Solve invariants problem