Generic output write
Some more code