Changed up the method parameters for writing.