Changed the clearList() for testing