Little refactor, dont ask for instanceof, add "prioridad"