Added InitPan method