Added more weight functions.