Loop peeling and inversion functional but with errors in combination.