Refactor get scores