Policy based control