Removed some logging, added support for log level