Added bool in variable render method