Updating program for no flog and flay errors