Added sorted arrays, will likely be removed in next commit