Implimented getWeights