Added check that width argument is a number