Added split function