Use logging commands instead of println