Configure guard properly