Rewrite cellLoc to use private variables.