Added tree and queue methods for centralized security monitoring