Training codes after reading