Added chaining for constructor and ability to use resources.