Working random reduce, however something seems to go wrong.