Set up guard. (Fix #8)