Added a private method.