First pass at making it a useable API.

Signed-off-by: Justin Dickow <jjdickow@gmail.com>