Adding conditions and commands