Simpler timeout sample program
Modified the timeout system