Import functions for grid for new legend functions