Added function for gauge manipulation