Updated prepend method