Add hooks to top and bottom. #1133