Removed Segmentation Violations, stabilized