Finally got a working splitter application.