Fixed part of evaluate function.