Fixed truncated output bug.
Changed service creation api, handler action is now a promise.