Made improvements. Now working. Seems to take twice as long as serial version.