Setting up restrict