Simple level detector added