Program is completed, except the log parts.