Added many new functions.