Calculating constant and common values in Init().