Removal of elements now working