Attempting to use Queue for inter-thread communication but it doesn't seem to work