Add function for parser struct