Used deferred promises to make attendance removal more guaranteed.