Added initFlag