Use timeout service instead of window.setTimeout