Use correct array functions.