Function of a Layer guard