Added preferences. Currently not working well.