Sets global settings