Added dialogue for manually setting z-range