Finished new functions.