Adding final codes