Changed for saving logs