Fixed the ignoring of methods.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>