Move calculation setup to initialize() after staticAnalysis.