Move result and dependencies to an object
Change result var name