Add auth and logging