Commented fitness function code.