Recoded write and add .ctps

index and view included just in case.