Added clear and split functions