Prosecutor Brian Frazier said Carlos began spying for Cuba in 1977 , and Elsa began in 1982 .