Add error check for omitted pwidth, update loop times