Add the ability to specify method names for before/after hooks