For some reason not importing this is causing issue with running the functionality directly; specifically when running from background job.