Attempted psuedo-inverse (won't investigate further) and still developing inner-outer loop method.