General solution for managing all entrances and gates