Rating data and storing them, returning them internally, cleaning up