Added logging so that -v command actually logs messages.