Text this: Hermaphroditic sex allocation evolves when mating opportunities change.