Changed how getApplicableEntities works. Didn't do much.