Prepared some basic functions.