Added timeSpent for resource