Added encapsulation.