Added updateCheck logic