Add maxframe pkg and hook.