Changes to norm function