Ability to pass inverted matrix. Optimized logging.