Updated message log text. Added if-statement