Removed redundant serialization code.