Actually add the routine for calculating cell name

Forgot to commit this routine previously