-Resource settings code refactoring. Closed #4