Changed public method to protected (shouldn't be exposed).