Segfaulting code. Pushing to help with pairing