Updated files with score function.