Refactory of withTimeout and add exclude method