B: Preliminary tasks