Added function squared