Fixed multithreading bug, added random parameters option to menu