Use output_handler instead of deprecation (fixes NameError)