Changed to return an int array.