Add basic encoding