Made the resource name configurable and made some other minor changes.§