Added a queue function with a background job