Added max intensity threshold