Updated serializer to support method call