Background execution working using bgType option