Completed four functions.