Function badges's incrementation ready

Code optimized iOS 7 and ready for production.