Added clearing function