Helper methods.
Merge pull request #3 from wbyoung/helpers

Helper methods.