Added code to compute effective width properly