Rename `end` with `done`
Use `then`. Correctly use `done`