Added some functions to access useful information.