Added some basic functions