Implemented class filtering on the server.