Consulta functionality added