Add threading to program to avoid blocking.