A function to be invoked by the getIndepandentScore function