Added extend method to Utils.