Changed interval delay to timeout and changed file writes to be syncd