Cell number added
Now using CGeometry functions to access frames