I strongly suggest you get this working in the Framework before attempting to use it in the Authoring Tool