Implemented custom serializer to prevent bulk serializing to client