Trying to see if the clear function will work now that it's outside of the callback