Implemented parseValue method.