Added verbosity levels. Removed test code.