Corrected script
Modified fitness parameters
Use condition_variable instead of future. Future sometimes deadlocks