added --medium and --long flags