This takes an array as an argument