Add waic functions