Promote functions to methods! Add API demo.