Changed to set vars for erb