Splitting logic