Added import guard to log