Finished serial version, attempted parallel version