Added allSettled method