Return the correct variable
Fix definitions
Remember column types - pass them by reference