Added battery life saving code :)