Added logMessage() function