Added new Encoded functions and Compressed subclass