Removed a redundant import and changed to the non-deprecated collection accessor