Rewrote indentation code.