Stop using deprecated selections API
Use OCaml when testing background app updates
Removed unused code