Added simple encoding