Added most of bluetooth backend