Implemented addr_switch