Added a PageLoad conditional before executing tasks