Added prepend (authored by stassats) and attach.