Replaced call to method that used E4X