Extended and added an exclude tables option.