Modified and Divided functions properly