Add encoding
Full ghosting support!