Changes suggested by Asgeir.

Split adjustPref into two methods: clearPeriodicBC and determinePref.