Program runs, got rid of damn segfault