Update to Issue #8

Potential error if gpFlags were not set correctly. Defaults to gpFlags =
0 should there be any issues