blatantly copies from MBOSTOCKS.