Made fetchLastTag have a promise-based api