Proper output generation