Added function returning G