Use logging instead of console output