Initialize the valsize variable.