Reviewed-by: Karl Palsson <karlp@tweak.net.au> Removed higher level helpers from this commit, they are not a very friendly API to use.