Utils functions for behaviors management