Adding function handler support (not just method).