Finished writing the RMD file. Output checked.