Removed grid function