Adding client clear functionality