Merge BB code to AR code for further work