Encoder working, changes to dictionary + IOHandler