Some simple useful code such as parsers