Better means of detecting cell value type and attaching cell to it.