Added truncate method to reset schema
Fixed visible column logic