Added sin, cos, and sqrt to valid functions