Added error messages for parsing functions.