Updated the main for BAC