Added functions from the Windows version and config variables