Sped up local ba code