Added threading to handle commands --> works!!