Server now filters using a given filter function from the client to filter out data.