A Well-Written Time Machine