Make extension work again, use pref value

I am sure there is still dead code present I need to remove.