Created helper functions for parsing.