Patched for STM32F4