Added bash-style options, locked diff length