Added scorecoad to a new function