Added function grammar