This allows the main and background thread to communicate with each other. Signed-off-by: Ronald Caesar <github43132@proton.me>