Support duration from command line