Still trying to get the listener working properly. I think the problem is that it is not running terminal commands correctly