Double blue check: replace call of logger.lastMessages to simply logger.lastMessage