Added loglevel parameter, default value INFO