Put dot base functionality.

Need to create another thread to throw callbacks