Added check to prevent the computer from going under 5% of battery