Moved the "getParams" function outside the "TimeLord controller".