Added error handling and the combination of multiple columns under one header