Bug fixes and implemented a leave gov option.