Added functions to BNF