Imported from https://github.com/rednotion/parallel_esn_web