Perform operation in a new thread