Changed to using wx