Adding logging for testing