Made server-side faster; filter functions.