Fixed it so canDoEP actually works