Fixed a few functions, added auth