https://github.com/MrMEEE/bumblebee/commit/a047be85247755cdbe0acce6#diff-1