Privacy level

PR #170 with some modifications