Failed attempt at rate-limiting using multithreading, such a cool idea though!