Added resolved array to track satisfied depends, and added a result document to the .done() method.