Changed modifier from private to protected for extending.