Adding clear function