Added the ability to add/remove the first/last items of the list