Added loglevels to control log verbosity