Needed to export XMIN and XMAX