Added programatic API.
0.0.2