Refactoring code + Add settings options (loaderSelector + loaderClass)