Update bluetooth functionality.
Clear main.