Added base resource class.