Added extended type reader and writer