Fully ported to 1.7.2 and updated copyright notice.