Add self calling function.