Add minimum value detection for layer plotting.