Replaced "this" by a reference to an instance; a new function called "getApiParameters"; etc.