Add mode to calculations constructor.