Auth functions added.