Fixed major writing issue.