Moving score function to the client (active for entity table).