Added various utility methods.