Working version before upgrading r studio.