Proper output handling