Implemented unindent a little differently, hopefully simpler.