Now appends to logfile instead of overwriting