Fixed slight hole in mix algo, added UI