Minor Pull Request - Sanity check on whether these are changes you'd like to add to the api.

Hi Joydeep,

I was wondering whether you'd be interested in my changes or proposed changes.

I haven't implemented one fully, but I wouldn't mind some feedback.

Cheers,

Stefan