Wrote object hooks that actually work. sigh.