Converted to JSON callbacks
Updated module for JSON callbacks