Changing more 'print's into 'log's