Added clear function