Refactoring: Removed appdelegate reference to access projectsettings(member already) and a temp var which was only used once.