Made output class compile at least. Still buggy.