Fixed seg fault, got non-hashing solve function to work