Adding column logic