Add global settings file, remove unnecessary function