Added hooks at the end of the lines.