Updating broker.js with standardized returns {0,1} for success, failure.