Added remove and removeAtEnd methods