API improvements. Result trait created