Fixed a couple of bugs and found the source of profiles not saving right.