Added support for -a and -l flags