Fixed grammar for functions