Add permission check stuff