Added support for -l -m -t -p -r flags.