Change API level
Improve head gesture detection