Building out the base functionality and resource class.