Add comments and format.