Added preferences, which is needed to get the notes