This will be slower than a loop but perhaps it won't be called that often