Worked on adding a fitness function.