Removed global grid variables.