Adding logging to module