Finally got input stream processor working. Also added some stubs.