Refactoring
Using time to determin if we have a time out