Added possibility to do custom result writer. Fixes #4.