Call the parent constructor with the variables instead and serializer needs to be defined.