Background task framework set up