Removed unnecessary check for currentObjects.