Changed log file to use append instead