Added some basic functions.