Adding support for append/prepend

Change-Id: I3c06891a9381743189c647b491ef1e28174972af