Changed hard clipping to have unique result code