Improved the signal level calculation