Refactored base class to not need injection.
Fixed error with loader not being created for parent class