Add timeout support to Pear module