Documented GWD function