Initialisation of selection mode.