Added multithreading to prevent the cheating function from blocking the main thread