Updated to remove Segfault from Assembly Code