Using the gridx variable