Implemented very basic evaluation function.