Changed from private to protected due to scoping issues