I added p = 0 as you suggested. I am now getting this error:
ERROR: LoadError: UndefVarError: t not defined