Updated BT code