Adding basic guard implementation into transitiona and state check