Added removeElement - still need to test this.