Create a function for different grid completion tasks.
Create a function for different grid completion tasks.

And add the aggregate footer calculation to it along with the
cookie saving.

rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son