Add memo function.