In 1374 , he became Comptroller ( in charge of the money ) of the Customs for the Port of London .
Chaucer wrote many of his major works in a prolific period when he held the job of customs comptroller for London ( 1374 to 1386 ) .