Added preferences boilerplating