Adds clear all function.