Fix qw brackets (deprecated)
Add/Fix logging