Support for class methods for common tasks.

Added a couple class methods to help with common tasks.