WIP. Delete unused features. Start move to preferences