Nearly ready to integrate into webapp.