Removed write code