Made the Method class much more powerful