Fix strict mode
Implement logging