Add copyright and new functions