No, you do the subroutine for each line, except for the hook. You should have only 1 hook.