Adding support for prepend and append options