Reduced the lines of code of SSCloseness.