The level parameter should be a string
Added some documentation