Added encryption and encoding.