Tried to improve capsuleCast selection