Changed to an asynchron call to decouple from GUI activities