Adding code for split points - preliminary