Use logging, per dionyziz's instruction