Perform slow operations in separate threads