Removed unnecessary new object creation.