Improved the registerColum function (Refactor)