Core cleanup.