Added the possibility to check for duplicate columns