Adding init_encoders function
slight modif on init