Moved code over from Google Code.