Added switching of data loggin directory