Updated MS: started squares method