Fixed up background task processing