Added several utility methods.