Implemented different encoding.