Added run function to hook class