Core extraction so we can use in workers