Added a clear() function to Warlock