Run less functions in a background thread