'user' -> self.settings.function, thanks Vishal Agarwal