Changed access modifiers to protected