Added variables using 'p' and 'g'

(optional, non-standard feature)