Bugfixes and stability improvements
Uses class buildhashfrommodel method instead of global
Passes json data back to the block