Added filtering of contact methods to remove the unnecessary ones.