Refactor, core, and scale methods implementation.