Fixed some general silliness.
Gave the function containing the code for the //gmask command a better name.