Changed some 'list' names to 'array' for sake of readability.