Modified to remove fixed ObjectID for columns, which made it not work in 2012R2. Tested to work in 2012 DC now.