Add method to get hook by name