Added functionality for append to front