Add local max condition