Added global mod detection