Added generic function compute-effective-method.