Fixed all warnings, fixed random seed, still not working properly though...