Implemented global scoring