This is doing my head in. I a trying to show a spinner and then remove it after a task has been performed.
Unfortunately the spinner remove code executes before the task