Changes reg and log