Modified to take snake eyes into account