Setup of guard