The md object should return itself if passed into the [] method. This sh...

...ould simplify the code. On several places.