EP-ID of agent generated EP now dependent on number of intrinsic EPs. Closes #9