Add initial support for preferences