Reworked for brokerBacon.  Initial Commit by mootzville