Added method to the main interface.

I do not know how to merge pull requests, but this is an addition from my previous PR.