Created some basic functions