More work on BTEngine.