Did a bunch of work setting up relationships and authentication