Added functionality to specify array of splits