More efficient when logging messages