Added signal to noise ratio calculation