Implemented bluetooth functionality.