Added option to edit periods (until no result saving).