BUGFIX: It doesn't work on class methods.