Replaced overly aggressive method_missing with some dynamic define_method calls