Fixed computational error and added ability to ignore columns