Updated BRB code