Added loglevel feature