4-way SAD functions added