Added weight sharing to BPDemo as a quick test.