Could we keep the existing API here and pass $userName as an element of $params ?