Added the ratio and errors calculation in the function pool