Added stuff for login and data access.