Add preliminary ratings code