Refactor to get sentencer in