Adds split with callback function