Random Fit tested, a bit fixed and added to GUI