Added mag for better logging