Removed unnecessary array conversion