Add functions,updater and threads