Moved column creation to its own method