Added notification levels and logging.