Moved some variables to the local settings.