Completed all functions.