Added an option to not show permission errors. Also a few minor
optimizations.