Added statusbar updates and automatic closing.
Added more TODO.