Implement valleyScore