Added timeout on hook