Passing settings to every function.