Added coding and encoding