Improve example with timeout attribute