Refactored log calls, to avoid using the % operator