Restricting and sanitizing parameters to a module