Added genetic optimization