Added status writing