Mostly working, has a problem with seg faulting
Working on it