Both are part of the planning process. The assessments of risks and materiality are then kept under constant review because as the audit progresses and more information comes to light things might change. Sometimes the assessment of materiality at the planning stage is called a ‘preliminary assessment of materiality’.