Added smart indent on insert