Basic grid functions completed