Add credit/license and prepend anonymous function