Added result type

Preliminary implementation