Added ability to raise or log on unpermitted params.