Added function to get volume level.