Added the possibility to pass vars to the render method
Basic check before scan