Put hook file writing in place.