Updated scores function