Add afterbuild to items