Added light and debug line in .write