Completed basic functions.