Set background prior based on data (slightly dodgy)