Added the result function to common libraries