Added functionto recognize -a