Added some documentation to the ever useful timeout code