Updated with feedback in numenta/nupic#817