Finished main features. The Segfault is still persisting.