Starting to implement random pre-opt
Starting to implement random pre-opt