[Refactor] Changed signature of getSettings method.

Change required for #5