Add switch to change local