Added helper functions for parser