Splitfunction.