Minor: Using the client-side provided values for "type".