Added tonumber cast for level