Removed unused reference to promises