Replaced withSpec elements by setSpec.