Added norm function.