Added auto-indent functionality.