Funciones auxiliares para herramientas