IRWLS algorithm seems to work now