Mohamed Said created a Forge SDK that would probably work better than what I've cooked up and has more features. https://github.com/themsaid/forge-sdk