Just an initial code for BT refactor.