Automatizing with guard