Rename duration and fix bug about sending arguments to flag