Replaced 'print' with 'logging'