Added parameter to toggle the drawer infinitely.