Added the self arg in getInputParams