Core extensions and utility methods.