Corrected self.finish to self.write