Proper logging

Implement better logging