Started work on auto-lanterns, and added API.