Added multi-threading for the options menu