Change check on max overlap