Loggin to the file doesn't work :(